#pragma once

#include <unistd.h>

#include <vector>
#include <string.h>



class BufferManager{
	private:
		size_t chunksize=4096*4;
		size_t chunknum=1;
		//size_t chunkused=0;
		std::vector <ByteBuffer> bufs;
	public:
		~BufferManager();
		ByteBuffer  getByteBuffer();
		ByteBuffer mergeAll();

};
